import type { QueryParmas } from './general'
import { Dayjs } from 'dayjs'

export interface SelectForm extends QueryParmas {
  vipName: string
  vipMobile: string
}

export interface TableItem {
  id: number
  vipDesc: string
  rechargeDate: string
  vipName: string
  vipMobile: string
  vipSex: number
  realMoney: number
  sendMoney: number
  totalMoney: string
  totalConsumeMoney: string
  totalRemainderMoney: string
}

export interface CreateOrUpdateForm {
  id?: number
  vipDesc: string
  rechargeDate: Dayjs | string
  vipName: string
  vipMobile: string
  vipSex: number
  realMoney: number | undefined
  sendMoney: number | undefined
}

export interface ConsumptionForm {
  id?: number
  vipId: number
  consumeTime: Dayjs | string
  consumeType: 'SITE_ORDER' | 'OTHER_ORDER'
  consumeHours: number | undefined
  unitPrice: number | undefined
}

export interface ConsumptionItem {
  id: number
  vipId: number
  consumeTime: string
  consumeType: 'SITE_ORDER' | 'OTHER_ORDER'
  consumeHours: number
  unitPrice: number
  consumeTotalMoney: number
}
